<template>
  <div id="app">
    <template v-if="route.path.startsWith('/user')">
      <router-view />
    </template>
    <template v-else>
      <BasicLayout />
    </template>
  </div>
</template>
<script setup lang="ts">
import BasicLayout from '@/layouts/BasicLayout.vue'
import { onMounted } from 'vue'
import { useRoute } from 'vue-router'
import { useLoginUserStore } from '@/stores/loginUserStore.ts'

const route = useRoute()
const doInit = () => {
  // doinit()
  console.log('hello,欢迎来到我的项目！！！')
}

onMounted(() => {
  //loginUserStore.getLoginUser()
  doInit()
})
</script>

<style scoped></style>
